<?php
namespace App\Admin\Extensions\Form;


use Dcat\Admin\Form\Field\Divide;

class DivideTitle extends Divide{
    public function __construct($label = null)
    {
        $this->label = $label;
    }

    public function render()
    {
        if (! $this->label) {
            return '<hr/>';
        }

        return <<<HTML
<div class="mt-2 text-center mb-2 form-divider form-divider-title">
  <span>{$this->label}</span>
</div>
HTML;
    }


}